﻿using System;
using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

namespace DongFangGuoKai.WMSPlatform.Core.Migrations
{
    public partial class M23 : Migration
    {
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.AddColumn<int>(
                name: "CreateUserId",
                table: "t_CabinetCellTemp",
                type: "int",
                nullable: false,
                defaultValue: 0);

            migrationBuilder.AddColumn<string>(
                name: "CreateUserName",
                table: "t_CabinetCellTemp",
                type: "varchar(50)",
                unicode: false,
                maxLength: 50,
                nullable: true,
                comment: "创建人");

            migrationBuilder.AddColumn<int>(
                name: "IsFullBox",
                table: "t_CabinetCellTemp",
                type: "int",
                nullable: false,
                defaultValue: 0);

            migrationBuilder.AddColumn<int>(
                name: "IsLock",
                table: "t_CabinetCellTemp",
                type: "int",
                nullable: false,
                defaultValue: 0);

            migrationBuilder.AddColumn<DateTime>(
                name: "ModifyDate",
                table: "t_CabinetCellTemp",
                type: "datetime",
                nullable: true,
                comment: "修改时间");

            migrationBuilder.AddColumn<int>(
                name: "ModifyUserId",
                table: "t_CabinetCellTemp",
                type: "int",
                nullable: false,
                defaultValue: 0,
                comment: "修改人Id");

            migrationBuilder.AddColumn<string>(
                name: "ModifyUserName",
                table: "t_CabinetCellTemp",
                type: "varchar(50)",
                unicode: false,
                maxLength: 50,
                nullable: true,
                comment: "修改人");
        }

        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropColumn(
                name: "CreateUserId",
                table: "t_CabinetCellTemp");

            migrationBuilder.DropColumn(
                name: "CreateUserName",
                table: "t_CabinetCellTemp");

            migrationBuilder.DropColumn(
                name: "IsFullBox",
                table: "t_CabinetCellTemp");

            migrationBuilder.DropColumn(
                name: "IsLock",
                table: "t_CabinetCellTemp");

            migrationBuilder.DropColumn(
                name: "ModifyDate",
                table: "t_CabinetCellTemp");

            migrationBuilder.DropColumn(
                name: "ModifyUserId",
                table: "t_CabinetCellTemp");

            migrationBuilder.DropColumn(
                name: "ModifyUserName",
                table: "t_CabinetCellTemp");
        }
    }
}
